SRCPATH = ./
SHAREDPATH = ../tools/src/
SHAREDINCPATH = ../tools/include/

CC = g++
LIBS = -lglut -lGLU -lGL -lIL -lILU


block : main.o block.o cube.o light.o quad.o
	$(CC) -o block main.o block.o cube.o light.o quad.o $(SHAREDPATH)*.cpp -I$(SHAREDINCPATH) $(LIBS)
main.o: main.cpp
	$(CC) -c -g main.cpp $(SHAREDPATH)*.cpp -I$(SHAREDINCPATH) $(LIBS)
cube.o: cube.cpp cube.h
	$(CC) -c -g cube.cpp $(LIBS)
block.o: block.cpp block.h
	$(CC) -c -g block.cpp $(LIBS)
quad.o: quad.cpp quad.h
	$(CC) -c -g quad.cpp $(LIBS)
light.o: light.cpp block.h
	$(CC) -c -g light.cpp $(LIBS)

clean:
	rm -f *.o
